package com.zmc.dynamic.controller;

import com.alibaba.fastjson.JSON;
import com.zmc.dynamic.domain.User;
import com.zmc.dynamic.service.TransService;
import com.zmc.dynamic.service.UserService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("trs/")
public class TrsController {

    @Resource
    private TransService transService;

    @RequestMapping("save")
    public String save(){
        transService.update();
        return "ok";
    }

}
